import request from '@/utils/requset'


// 一级分类接口
export interface tabs{
    id:number,
    name:string,
    position:number,
    sceneId:1,
    tabWraps:any[]
}
export interface listModel{
    sceneId:number,
    tabLists:tabs[]
}


export default{
    // 请求一级分类
    reList(){
        return request.get<any,any>(`/revision/rank/v4/rankTabs?sceneId=1`)
    },
    // 二级分类下的商品列表
    reqTwolist(rankingId:any){
        return request.get<any,any>(`/revision/rank/v4/element?rankingId=${rankingId}`)
    }
}